home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Developer CD Series 2000 May: Tool Chest
/
Dev.CD May 00 TC.toast
/
pc
/
tool chest
/
games
/
game sample code
/
zam 1.0a13
/
utilcode
/
coreassertion.h
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1993-09-16
|
390 b
|
18 lines
#define CoreDebug 1
#ifdef CoreDebug
void CoreAssert(short, char *, char *, short);
#define Assert(x) if(!(x)) CoreAssert((short)(x),#x, __FILE__, __LINE__)
#define ASSERT(x) if(!(x)) CoreAssert((short)(x),#x, __FILE__, __LINE__)
#define AssertErr(x) if(x) CoreAssert((short)(x),#x, __FILE__, __LINE__)
#else
#define Assert //
#define ASSERT //
#define AssertErr //
#endif